package cn.talkimages.framework.beans;

import java.util.Iterator;

public interface PageList<E> {

	/**
	 * the number indicated the page that you is access.
	 * 
	 * @return Integer
	 */
	Integer getPageNo();

	/**
	 * the number indicated the capacity of a page.
	 * 
	 * @return Integer
	 */
	Integer getPageSize();

	/**
	 * get the total count of rows the request can retrieve.
	 * 
	 * @return Long
	 */
	Long getNumFound();

	/**
	 * get the iterator that can traverse the result content in this page.
	 * 
	 * @return Iterator<E>
	 */
	Iterator<E> iterator();

	/**
	 * number of content size in this page.
	 * 
	 * @return int
	 */
	int size();

}
